fix truncateFilePath edge case on windows
authorJoey Hess <joeyh@joeyh.name>
Thu, 30 Jan 2025 20:51:42 +0000 (16:51 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 30 Jan 2025 20:53:10 +0000 (16:53 -0400)
commit773115fd5f9334855b138323b74ca572695208a0
treee19936179c2455d71f7a7ce2c74c8803bd21abe2
parentb596e3b177ab75c7782828b8e92fb27824cb55c6
fix truncateFilePath edge case on windows

If the filepath starts with something that is not valid utf-8, it would
have returned "". And if the filepath was all non-valid utf-8, it would
also return "".
Utility/FileSystemEncoding.hs